Synonyms operations
Create or replace a synonym
If a synonym with the specified object ID doesn’t exist, Algolia adds a new one.
Otherwise, the existing synonym is replaced.
To add multiple synonyms in a single API request, use the batch
operation.
PUT
Authorizations
Your Algolia application ID.
Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.
Path Parameters
Name of the index on which to perform the operation.
Example:
"ALGOLIA_INDEX_NAME"
Unique identifier of a synonym object.
Example:
"synonymID"
Query Parameters
Whether changes are applied to replica indices.
Body
application/json
Synonym object.
Response
200
application/json
OK
The response is of type object
.